package com.rmb.api.controller;

import com.rmb.api.entity.Order;
import com.rmb.api.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
 * @author zhao
 */
@RestController
@RequestMapping("/Order")
public class OrderController {
    @Autowired
    private OrderService orderService;

    /**
     *查询
     * @return
     * **/
    @GetMapping("findList")
    public List<Order> findList(){
        return orderService.findList();
    }
}
